package com.itheima.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDI {
    public static void main(String[] arg){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("application.xml");
        UserService userService=(UserService) applicationContext.getBean("userService");
        userService.say();
    }
}
